package com.bjsc.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.bjsc.entity.model.InAndOut;
import com.bjsc.entity.model.Player;

import java.util.Map;

/**
 * @author create by VIC.Huang
 * @date 2018/2/25
 */
public interface IPlayerService {

    Page<Map<Object,Object>> selectPlayerList(Page<Map<Object, Object>> page, String search);

    Page<Map<Object,Object>> selectBetRecords(Page<Map<Object, Object>> page, Long playerId);

    Page<Map<Object,Object>> selectWithdrawRecords(Page<Map<Object, Object>> page, Long playerId);

    Page<Map<Object,Object>> selectRechargeRecords(Page<Map<Object, Object>> page, Long playerId);

    boolean frozenPlayer(Long id);

    boolean unfrozenPlayer(Long id);

    InAndOut getInAndOutByPlayerId(Long playerId);

    Page<Map<Object,Object>> selectInvitePlayerList(Page<Map<Object, Object>> page, Long playerId);

    boolean frozenAllPlayer();

    boolean setToSystemPlayer(Long id);

    boolean setToNormalPlayer(Long id);
}
